package inheritance;

public class Dog extends Animal {
	private int age;
	public void printAge(){
		System.out.println("I am a dog.I am "+super.getAge()+"!");
	}
	public int getAge(){
		return age;
	}
	public static void main(String[] args){
		Dog dog = new Dog();
		dog.printAge();
	}
}
